Private Attribute

I have an attribute in a module that I want users to only be able to write to it through a dialog box which I will develop. They should not be able to edit it by opening the module and manually write in it.

Does anyone know if this is possible and how to do it?


camba - Tue Nov 07 12:11:41 EST 2017

Re: Private Attribute
Mike.Scharnow - Tue Nov 07 13:35:25 EST 2017

I don't think that there are easy solutions for this.

One thing that comes to my mind is a trigger that somehow detects whether the attribute is written by the dialog. Perhaps like this:

  • you have a module attribute of type string, that is usually empty
  • when your dialog starts, the attribute is filled with some super secret value
  • The user fills the field on the dialog box
  • the dialog writes the value to the object attribute
  • the trigger checks that this is allowed, because the module attribute contains the secret value
  • the dialog clears the module attribute

Of course you need to make sure that the module attribute creates no history entry, perhaps the super secret value is calculated together with the current date and hour and the session number so the user cannot guess how the value is.

and of course you need to hide the trigger code effectively from the user e.g. by using dxl encryption